From d9059af5fce967f29c0271e7ed87f13b326bad73 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 1 Sep 2003 10:03:47 +0000 Subject: [PATCH] Split image description page-specific functions to ImagePage child class of Article. --- wiki.phtml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wiki.phtml b/wiki.phtml index 98895a2c16..d79da00f17 100644 --- a/wiki.phtml +++ b/wiki.phtml @@ -51,7 +51,14 @@ if ( -1 == $wgTitle->getNamespace() ) { } } else { - $wgArticle = new Article(); + switch( $wgTitle->getNamespace() ) { + case 6: + include_once( "$IP/ImagePage.php" ); + $wgArticle = new ImagePage( $wgTitle ); + break; + default: + $wgArticle = new Article( $wgTitle ); + } switch( $action ) { case "view": -- 2.20.1